package com.ocom.common.entity.mjrecode;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@TableName("mj_record")
public class MjRecord implements Serializable {

    private static final long serialVersionUID = -9082465523514331605L;
    @TableId(type = IdType.NONE)
    private Long id;

    private Integer comId;
    private String monthValue;
    private Integer deptId;
    private String deptName;
    private Integer pId;
    private String pCode;
    @JsonProperty("pType")
    private Integer pType;
    private String pPhone;
    private String pName;
    private Integer deviceId;
    private String deviceNo;
    private String deviceName;
    private Integer regionId;
    private String regionName;

    private Integer areaId;
    private String areaName;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    private Date openTime;
    private Integer openMode;
    private String openInfo;
    private String yct;
    private String data;
    private Integer openState;
    private String codeColor;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date colorTime;
    private String hsResult;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date hsTime;
    private Integer ymNum;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ymTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    private String temperature;
    private String avatarUrl;
    private String recordId;
    private String yctRetcode;
    private Integer openType;
    private Long sendState;

    private Long deviceVerType;

    @TableField(exist = false)
    private Integer openNum;

    @TableField(exist = false)
    private Integer unOpenNum;

    @TableField(exist = false)
    private String checkStatus;

//    @TableField(exist = false)
//    private Integer greenNum;
//
//    @TableField(exist = false)
//    private Integer yellowNum;
//
//    @TableField(exist = false)
//    private Integer redNum;
//
//    @TableField(exist = false)
//    private Integer hsYinNum;
//
//    @TableField(exist = false)
//    private Integer hsYangNum;

    //先占用测试 2025年10月11日15:57:14
    @TableField(exist = false)
    private Long groupNo = 1l ;
    @TableField(exist = false)
    private String groupName  ;

    //先占用测试 2025年10月11日15:57:14
    @TableField(exist = false)
    private Long zoneNo = 1l ;

    @TableField(exist = false)
    private Integer mjRecNum;

    @TableField(exist = false)
    private Integer mjMachNum ;

    @TableField(exist = false)
    private String dateN ;


    @Override
    public String toString() {
        return "MjRecord{" +
                "id=" + id +
                ", comId=" + comId +
                ", monthValue='" + monthValue + '\'' +
                ", deptId=" + deptId +
                ", deptName='" + deptName + '\'' +
                ", pId=" + pId +
                ", pCode='" + pCode + '\'' +
                ", pType=" + pType +
                ", pPhone='" + pPhone + '\'' +
                ", pName='" + pName + '\'' +
                ", deviceId=" + deviceId +
                ", deviceNo='" + deviceNo + '\'' +
                ", deviceName='" + deviceName + '\'' +
                ", regionId=" + regionId +
                ", regionName='" + regionName + '\'' +
                ", areaId=" + areaId +
                ", areaName='" + areaName + '\'' +
                ", openTime=" + openTime +
                ", openMode=" + openMode +
                ", openInfo='" + openInfo + '\'' +
                ", yct='" + yct + '\'' +
                ", data='" + data + '\'' +
                ", openState=" + openState +
                ", codeColor='" + codeColor + '\'' +
                ", colorTime=" + colorTime +
                ", hsResult='" + hsResult + '\'' +
                ", hsTime=" + hsTime +
                ", ymNum=" + ymNum +
                ", ymTime=" + ymTime +
                ", createTime=" + createTime +
                ", temperature='" + temperature + '\'' +
                ", avatarUrl='" + avatarUrl + '\'' +
                ", recordId='" + recordId + '\'' +
                ", yctRetcode='" + yctRetcode + '\'' +
                ", openType=" + openType +
                ", sendState=" + sendState +
                ", deviceVerType=" + deviceVerType +
                ", openNum=" + openNum +
                ", unOpenNum=" + unOpenNum +
                ", mjRecNum=" + mjRecNum +
                ", mjMachNum=" + mjMachNum +
                '}';
    }
}
